package com.tkmybatis.hfy.base.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TreeEntity {

	private String id;
	private String pid;
	private String text;
	private List<TreeEntity> children;
	
	public void add(TreeEntity treeEntity) {
		if(children == null || children.size() == 0) {
			children = new ArrayList<>();
		}
		children.add(treeEntity);
	}
	
	private Date evaluationBeginDate;

	private Date evaluationEndDate;

	private String evaluationPlace;

	private Integer totalNum;

	private Integer expertNum;

	private Integer tendererNum;
}
